package com.daoeping.service.impl;

import java.util.List;

import com.daoeping.dao.UsrSkillDetailDao;
import com.daoeping.domain.Usr_skill_detail;
import com.daoeping.domain.Usr_userProduction;
import com.daoeping.service.UsrSkillDetailService;

public class UsrSkillDetailServiceImpl implements UsrSkillDetailService {

	private UsrSkillDetailDao usrSkillDetailDao;
	
	public UsrSkillDetailDao getUsrSkillDetailDao() {
		return usrSkillDetailDao;
	}

	public void setUsrSkillDetailDao(UsrSkillDetailDao usrSkillDetailDao) {
		this.usrSkillDetailDao = usrSkillDetailDao;
	}

	@Override
	public boolean addUsrSkillDetail(Usr_skill_detail usr_skill_detail) {
		// TODO Auto-generated method stub
		return this.usrSkillDetailDao.insertData(usr_skill_detail);
	}


	@Override
	public boolean updateUsrSkillDetail(Usr_skill_detail usr_skill_detail) {
		// TODO Auto-generated method stub
		return this.usrSkillDetailDao.updateData(usr_skill_detail);
	}

	@Override
	public boolean deleteUsrSkillDetail(Usr_skill_detail usr_skill_detail) {
		// TODO Auto-generated method stub
		return this.usrSkillDetailDao.deleteData(usr_skill_detail);
	}

	@Override
	public List<Usr_skill_detail> findAllUsrSkillDetail() {
		// TODO Auto-generated method stub		
		return (List<Usr_skill_detail>) this.usrSkillDetailDao.findAllUsrSkillDetail();
		
	}

	@Override
	public List<Usr_skill_detail> findAllUsrSkillDetailByUserProductionID(int userproduction_id) {
		// TODO Auto-generated method stub
		return (List<Usr_skill_detail>) this.usrSkillDetailDao.findAllUsrSkillDetailByUserProductionID(userproduction_id);

	}

}
